import { createApp } from 'vue'
import App from './App.vue'

import '@chenms-demo/theme-chalk/src/index.scss'

import Icon from '@chenms-demo/components/icon'
import Checkbox from '@chenms-demo/components/checkbox'
import Button from '@chenms-demo/components/button'
import Empty from '@chenms-demo/components/empty'
import Switch from '@chenms-demo/components/switch'

const plugins = [
  Icon,
  Checkbox,
  Button,
  Empty,
  Switch
]

const app = createApp(App)

// 将组件注册成为全局组件
plugins.forEach(plugin => app.use(plugin))

app.mount('#app')
